$f: 19.2;

.home {
  .banner {
    position: relative;
    background: url(../images/ln.png) no-repeat;
    background-size: cover;
    padding: 102/$f+vw 264/$f+vw 103/$f+vw 260/$f+vw;
    margin-top: 98/$f+vw;

    .top {
      display: flex;
      justify-content: space-between;
      margin-bottom: 41/$f+vw;

      .t {
        color: #000;
        font-size: 48/$f+vw;
        font-weight: 600;
        line-height: 1;
      }

      .btns {
        display: flex;

        .collect {
          width: 132/$f+vw;
          height: 40/$f+vw;
          border-radius: 4px;
          background: #1A53F0;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 16/$f+vw;
          margin-left: 4/$f+vw;
          color: white;

          &:first-child {
            margin-right: 24/$f+vw;
          }

          svg {
            width: 24/$f+vw;
            display: block;
          }
        }
      }
    }

    .info {
      .tags {
        span {
          color: #000;
          font-size: 16/$f+vw;

          &:first-child {
            margin-right: 52/$f+vw;
          }
        }
      }

      .website {
        margin: 20/$f+vw 0;
        color: #000;
        font-size: 16/$f+vw;
      }
      .des{
        color: #000;
        font-size: 16/$f+vw;
      }
    }
  }

  .main {
    margin: 60/$f+vw 260/$f+vw 160/$f+vw 260/$f+vw;

    .types {
      display: flex;
      border-bottom: 1px solid rgba(0, 0, 0, 0.10);

      .item {
        padding-bottom: 12.5/$f+vw;
        color: #000;
        font-size: 20/$f+vw;
        position: relative;
        cursor: pointer;

        &::after {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          height: 3/$f+vw;
          background: #1A53F0;
          opacity: 0;
          transition: all 600ms;
        }

        &:not(:last-child) {
          margin-right: 80/$f+vw;
        }
      }

      .on {
        color: #1A53F0;

        &::after {
          opacity: 1;
        }
      }
    }

    .boxs {
      margin: 40/$f+vw 0;
      .cInfo {
        .sec1 {
          display: flex;
          justify-content: space-between;

          .l {
            width: calc(100% - 40vw);
            .p1 {
              color: #000;
              font-size: 20/$f+vw;
              font-weight: 500;
            }

            .info {
              margin: 40/$f+vw 0 100/$f+vw 0;

              .tag {
                font-size: 16/$f+vw;
                display: flex;
                line-height: 1.5;

                &:not(:last-child) {
                  margin-bottom: 12/$f+vw;
                }

                span:nth-child(1) {
                  color: #999;
                  width: 80/$f+vw;
                }
                span:nth-child(2) {
                  width: calc(100% - 4.3vw);
                }
              }
            }
          }

          .pic {
            overflow: hidden;

            img {
              width: 608/$f+vw;
              height: 342/$f+vw;
              object-fit: cover;
              display: block;
              transition: all 600ms;
            }

            &:hover {
              img {
                transform: scale(1.05);
              }
            }
          }
        }

        .sec2 {
          .p1 {
            color: #000;
            font-size: 20/$f+vw;
            font-weight: 500;
          }

          .html {
            margin-top: 41/$f+vw;
            color: #000;
            font-size: 16/$f+vw;
            line-height: 1.5;
          }
        }
      }
      .box {
        display: none;
        .pros {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 40/$f+vw;
  
          a {
            width: 100%;
            background: #F6F9FF;
            padding: 20/$f+vw;
            display: flex;
            justify-content: space-between;
            transition: all 600ms;
            .pic {
              overflow: hidden;
              img{
                width: 134/$f+vw;
                height: 115/$f+vw;
                display: block;
                object-fit: cover;
                transition: all 600ms;
              }
            }
            .text{
              width: calc(100% - 8.5vw);
              .name{
                color: #000;
                font-size: 20/$f+vw;
                font-weight: 500;
                margin-bottom: 12/$f+vw;
              }
              .tags{
                .tag{
                  font-size: 14/$f+vw;
                   &:not(:last-child){
                    margin-bottom: 8/$f+vw;
                   }
                  color: #333;
                  span:nth-child(1){
                    color: #999;
                  }
                }
              }
            }
            &:hover{
              background: #FFF;
              box-shadow: 0px 4px 20/$f+vw rgba(0, 0, 0, 0.10);
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
            }
          }
        }
        .fws{
          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap:60/$f+vw 40/$f+vw;
          a{
            background: #F1F3F9;
            display: block;
            width: 100%;
            .pic{
              overflow: hidden;
              img{
                width: 100%;
                display: block;
                object-fit: cover;
                height: 300/$f+vw;
                transition: all 600ms;
              }
            }
            .text{
              padding: 65/$f+vw 20/$f+vw 46/$f+vw 20/$f+vw;
              .name{
                color: #000;
                font-size: 20/$f+vw;
                font-weight: 500;
                margin-bottom: 20/$f+vw;
              }
              .tags{
                span{
                  padding: 7/$f+vw 10/$f+vw;
                  background: rgba(26, 83, 240, 0.10);
                  border-radius: 8/$f+vw;
                  color: #1A53F0;
                  font-size: 16/$f+vw;
                  &:not(:last-child){
                    margin-right: 8/$f+vw;
                  }
                }
              }
            }
            &:hover{
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
            }
          }
        }
      }
      .show_box {
        display: block;
      }
    }
  }
  @media screen and (max-width: 1024px){
    .banner{
      margin-top: 60px;
      padding: 30px 5%;
      .top{
        margin-bottom: 20px;
        flex-direction: column;
        .t{
          font-size: 24px;
        }
        .btns{
          margin-top: 15px;
          .collect{
            width: 120px;
            height: 40px;
            font-size: 16px;
            svg{
              width: 24px;
            }
            &:first-child{
              margin-right: 12px;
            }
          }
        }
      }
      .info{
        .tags{
          display: flex;
          justify-content: space-between;
          span{
            font-size: 16px;
            &:first-child{
              margin-right: 0;
            }
          }
        }
        .website{
          font-size: 16px;
          margin: 10px 0;
        }
        .des{
          font-size: 16px;
          line-height: 1.5;
        }
      }
    }
    .main{
      margin: 30px 5% 60px 5%;
      .types{
        justify-content: space-between;
        .item{
          padding-bottom: 12px;
          font-size: 18px;
          &::after{
            height: 2px;
          }
        }
      }
      .boxs{
        margin: 30px 0;
        .cInfo{
          .sec1{
            flex-direction: column;
            .l{
              width: 100%;
              .p1{
                font-size: 18px;
              }
              .info{
                margin: 20px  0;
                .tag{
                  font-size: 16px;
                  &:not(:last-child){
                    margin-bottom: 12px;
                  }
                  span:nth-child(1){
                    width: 80px;
                  }
                  span:nth-child(2){
                    width: calc(100% - 80px);
                  }
                }
              }
            }
            .pic{
              img{
                width: 100%;
                height: auto;
              }
            }
          }
          .sec2{
            margin-top: 20px;
            .p1{
              font-size: 18px;
            }
            .html{
              margin-top: 10px;
              font-size: 16px;
            }
          }
        }
        .box{
          .pros{
            grid-template-columns: repeat(1, 1fr);
            gap:15px;
            a{
              padding: 15px;
              flex-direction: column;
              .pic{
                img{
                  width: 100%;
                  height: auto;
                }
              }
              .text{
                width: 100%;
                margin-top: 15px;
                .name{
                  font-size: 18px;
                  margin-bottom: 12px;
                }
                .tags{
                  .tag{
                    font-size: 14px;
                  &:not(:last-child){
                    margin-bottom: 8px;
                  }
                  }
                }
              }
            }
          }
          .fws{
            grid-template-columns: repeat(1, 1fr);
            gap:15px;
            a{
              .pic{
                img{
                  height: auto;
                }
              }
              .text{
                padding: 15px;
                .name{
                  font-size: 18px;
                  margin-bottom: 10px;
                }
                .tags{
                  span{
                    padding: 7px 10px;
                    border-radius: 8px;
                    font-size: 16px;
                    display: inline-block;
                    &:not(:last-child){
                      margin-right: 8px;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}